package com.cn.hospital.service.impl.system;

import com.cn.hospital.mapper.SysPermissionMapper;
import com.cn.hospital.service.system.SysPermissionService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(interfaceClass = SysPermissionService.class)
public class SysPermissionServiceImpl implements SysPermissionService {

    @Autowired
    SysPermissionMapper sysPermissionMapper;

    @Override
    public List<String> findUserPermissionById(Long userId) {
        return sysPermissionMapper.findUserPermissionById(userId);
    }
}
